<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			window.onload = function(){
				function fn1(){
					alert(this);
				}
				function fn2(obj){
					alert(obj);
				}
				
				var aBtn = document.getElementByTagName('input');
				fn1();
				aBtn[0].onclick = fn1;
				abtn[1].onclick = function(){
					fn1();
				};
				aBtn[2].onclick = function(){
					fn2(this);
				};
				
			};
		</script>
	</head>
	<body>
	</body>
</html>
